$(function(){
    new QWebChannel(qt.webChannelTransport, function(channel) {
        window.loginObject = channel.objects.loginObject;
        console.log(channel);
        console.log(channel.objects)
        loginObject.loginResultSig.connect(function(msg){
            console.log('sig',msg);
        })
    })
    $('#loginBtn').on('click', function() {
        var authInfo = {
            username:$('#username').val(),
            password:$('#password').val()
        }
        loginObject.login($('#username').val(),$('#password').val(),function(data){
            console.log(data)
        })
    });

    $('#rememberPwd_').on('click',function () {
        loginObject.send();
    })
})